Hello.
I have a question, I'm trying to copy a requirement from one module to another, using as a basis the script "copyobj" from DOORS.
And in it I'm putting a function which in addition to copying the object would add some details.
For this I decided to create a buffer, everything works great, but if there are any files attached, OLE object, this attachement is not copied to the target module.
I made some changes, but I'm not progressing in this regard
If anyone can show me a direction to follow, I would appreciate.
void Ver(Module sourceMod, targetMod)
{
Object latcho = current targetMod
Buffer bufValue = create
s = dateAndTime(today) ""
space = "\n"
string aux = ""
aux = get(textMultiLine2)
bufValue = richTextWithOle(latcho."results" )
bufValue += space
bufValue += space
bufValue += s
bufValue += space
bufValue += "Taking credit from module: "sourceModName" \nUser: "doorsname" \n"
bufValue += space
bufValue += aux
latcho."results" = bufValue
delete(bufValue)
}
braolive - Wed Oct 23 06:55:09 EDT 2013 |
Re: Copy OLE I think you need this instead at about line 19:
I don't think "\n" will work well in richText. If it fails try "\\par " instead. -Louie |